package com.atguigu.common.constant;

/**
 * @author ls
 * @version v1.0
 * @description
 * @date 2021/10/20 23:40
 */
public class WareConstant {


    public enum PurchaseStatusEnum {
        /**
         * 采购单状态
         */
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVED(2, "已领取"),
        FINISHED(3, "已完成"),
        HAS_ERROR(4, "有异常");

        private final int code;
        private final String name;

        PurchaseStatusEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    public enum PurchaseDetailStatusEnum {
        /**
         * 采购详情状态
         */
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        BUYING(2, "正在采购"),
        FINISHED(3, "已完成"),
        PURCHASE_FAILED(4, "采购失败");

        private final int code;
        private final String name;

        PurchaseDetailStatusEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

}
